<?php if (@$item['isItem']): ?>
<a href="#" id="<?php echo $id ?>" class="<?php echo $item['quality'] ?>" rel="item=<?php echo $item['itemid'] ?>"><?php echo $item['reason'] ?></a> <a href="http://www.wowhead.com/?item=<?php echo $item['itemid'] ?>"><?php echo image_tag('/images/wowhead.ico', array('align' => 'ABSMIDDLE')); ?></a>
<?php else: ?>
<a href="#" id="<?php echo $id ?>" data="<?php echo $item['dt']; ?>"><?php echo $item['reason']; ?></a>
<?php endif; ?>